<html>
    <body>
    	 {% if api %}
        <form action="/api_key/edit" method="post">
            <div>Name: <input type="text" name="api_name" value="{{ api.name }}"/></div>
            <div>Email: <input type="text" name="api_email" value="{{ api.email }}"/></div>
            <div>Enabled: <input type="checkbox" name="api_enabled" ></div>
			<input type="hidden" name="key" value="{{ api.key }}">
            <div><input type="submit" value="Edit"></div>
        </form>
		{% endif %}
    </body>
</html>